Complex scaling of ab initio molecular potential surfaces