Reliability Evaluation and Defense Strategy Development for Cyber-physical Power Systems