Lifetime estimation of wireless body area sensor network for patient health monitoring