Techniques for measuring body composition