Title: Energy Management in Wireless Cellular and Ad-hoc Networks