A formal framework for modelling and analysing mobile systems