A Cross-Layer Routing Protocol with Quality of Service Support for Flexible Deployment in MANETs