Hierarchically nanostructured MoS2 with rich in-plane edges as a high-performance electrocatalyst for the hydrogen evolution reaction