Measurement of the n-TOF Beam Profile with a Micromegas Detector