Mutual information maximization via joint power allocation in integrated sensing and communications system