Design of a Body Area Network for Medical Applications: the WiserBAN Project