Approximation algorithms for three-dimensional assignment problems with triangle inequalities