What is the function of the scrotum in the male reproductive system?