Greece to buy three frigates from France