Hierarchical MoS2 @TiO2 Heterojunctions for Enhanced Photocatalytic Performance and Electrocatalytic Hydrogen Evolution.