For the purposes of this chapter, a city or county shall have the power to issue its bonds to defray, in whole or in part, the costs of studies and surveys, insurance premiums, underwriting fees, legal, accounting, and marketing services incurred in connection with the issuance and sale of bonds, including bond and mortgage reserve accounts; trustee, custodian, and rating agency fees, and any other costs which are reasonably related to the foregoing.