The effects of pointing errors on the performance of optical communications systems