Evolution of magmatic and hydrothermal fluids associated with formation of pegmatites of two contrasting compositions