Nonlocal problems with local boundary conditions II: Green's identities and regularity of solutions