Modeling of Coronal EUV Loops Observed with TRACE. I. Hydrostatic Solutions with Nonuniform Heating