A quantum-chemical study on the boron centers in nonaqueous electrolyte solutions and polymer electrolytes