Email Record: Modelling the impact of software components on wireless sensor network performance