Overcoming energy peak overlap problems in EDS spectrum