Write a function day_name that converts an integer number 0 to 6 into the name of a day.
Assume day 0 is "Sunday". Return None if the arguments to the function are not valid.