Fault Tolerance and Science-Optimal Attitude Planning for Spacecraft: A Markov Decision Process Based Approach