Single-Anchor Localization and Orientation Performance Limits Using Massive Arrays: MIMO vs. Beamforming