Energy level crossing effects in the rare-earth zircons TmPO4 and PrVO4