Mexico’s president signs law to reform energy market, attract investment