Green’s function calculation of electron spin polarization. IV. Radical pairs in micelles