California bill sets regulations for self-driving car