Proposal of a mechanism for the paraelectric-ferroelectric phase transition in (NH4)2BeF4 via the formation of solid solutions with Ti2BeF4