Fiber-optic confocal microscopy using a spatial light modulator