An MDP Model for Censoring in Harvesting Sensors: Optimal and Approximated Solutions