TRANSITION TEMPERATURE OF THREE-DIMENSIONAL QUANTUM HEISENBERG FERRO- AND ANTIFERROMAGNETS