Online Microgrid Energy Management Based on Safe Deep Reinforcement Learning