A new law making it illegal to smoke in a car with anyone under the age of 18 come into force in Scotland.