Metelli's apparent rest, motion and the analysis of occlusions