The polarisation characteristics of plane gratings