Effect of interwall interaction on the electronic structure of double-walled carbon nanotubes