Variations in total solar irradiance during solar cycle 22