Flower-like MoS2 on graphitic carbon nitride for enhanced photocatalytic and electrochemical hydrogen evolutions