Optimal measurements for symmetric quantum states with applications to optical communication