Thermodynamic and structural properties of LaNi5−xMnx compounds and their related hydrides