Heat capacity in magnetic and electric fields near the ferroelectric transition in triglycine sulfate