Local angles and dimension estimation from data on manifolds