Characterization and application of two kinds of ESR dosimeters