Joint UL and DL Spectral Efficiency Optimization of Superimposed Pilots in Massive MIMO