Generalised-ensemble algorithms for studying temperature and pressure dependence of complex systems