A ‘nearly free electron’ model for crystalline MgH2