Resonantly enhanced tunneling of Bose-Einstein condensates in periodic potentials