Exergy analysis and optimisation of a wind turbine using genetic and searching algorithms