Service-oriented reference model for cyber-physical systems