Structure and properties of alkaline earth borate glasses