Melbourne Heart striker Eli Babalj has joined AZ Alkmaar on a four-year deal after the two clubs and the player agreed terms.