Reconfigurable Massive MIMO: Precoding Design and Channel Estimation in the Electromagnetic Domain