Manipulation of states of light in optical ring resonators