Experimental demonstration of a gain-flattening filter for few-mode fiber based on a spatial light modulator