How is malnutrition diagnosed?