Duality between spatial and angular shift in optical reflection