Joint MIMO Communications and Sensing With Hybrid Beamforming Architecture and OFDM Waveform Optimization