A finite element method for failure analysis of adhesively bonded structures