Describe the functions of control joints and expansion joints, explaining where they are required and the proper placement and use of each type.