Rating agency Moody's has downgraded its long-term credit rating on German carmaker BMW to A3 with a negative outlook.