Light curves and polarization of accretion- and nuclear-powered millisecond pulsars