Modelling a prosumer-consumer pair for investigation of local self-consumption of renewable energy