On the scattering matrix for reflectarray antennas