Resource allocation techniques based on machine learning for optimizing the performance of massive cell-free MIMO in 6G and beyond networks