A Radio Link Quality Model And Simulation Framework For Improving The Design of Embedded Wireless Systems