The evolution of motor cortical dysfunction in amyotrophic lateral sclerosis