Electron and phonon states localized near the graphene boundary