Survey of main challenges (security and privacy) in wireless body area networks for healthcare applications