Magnetic phase diagram of an Fe monolayer on W(110) and Ta(110) surfaces based on ab initio calculations