Nearly flat-top laser beams from unstable resonators with internal spatial filtering