Tesla profits could be challenged by Calif. credit-rule change