Phase transitions in Fe3Al-based alloys: ab initio study