Atomic and electronic reconstruction at the van der Waals interface in twisted bilayer graphene