Authentication and key management in heterogeneous wireless networks