BASF closes agreement to form joint company for battery materials