Investigations of the acceleration region of energetic electrons associated with decimetric type III and X-ray bursts