Soft computing approach to confocal and two-photon excitation microscopy.