Multilayer relaxation and reconstruction in bcc and fcc transition and noble metals