Deep reinforcement learning for inverting earthquake focal mechanism and its potential application to marine earthquakes