Transmit power allocation for joint communication and sensing through massive MIMO arrays