Multicolor CCD photometry of six lenticular and spiral galaxies. Structure of the galaxies