Mossbauer effect of 151Eu in EuNi5, EuMg2 and their hydrides