Techno-economic feasibility and size optimisation of an off-grid hybrid system for supplying electricity and thermal loads