r function for generating residuals from multi-season occupancy models via the approach of Moore and Swihart (2005)