Optimization of single-span single-storey portal frame buildings