Design of transition edge sensor microcalorimeters for optimal performance