Optimizing Bed Allocation in Hospitals: An In-Depth Analysis Using Queueing Theory, Simulation, and Heuristic Methods