Toward 5G cloud radio access network: An energy and latency perspective