Antiferromagnetic ordering and dipolar interactions of YbAlO3