Nonparametric regression on random geometric graphs sampled from submanifolds