Elastic, electronic and optical properties of cubic Mg2C under hydrostatic pressure: Modified Becke–Johnson calculations