An analysis for contradirectional-coupler-type optical grating filters