Phase Engineering from 2H to 1T-MoS2 for Efficient Ammonia PL Sensor and Electrocatalyst for Hydrogen Evolution Reaction