Fixed typo in equation (6). [should be a negative sign in front of cosine].