Find the minimum and maximum value of the function y=x3−3x2+6. Find the values of y at which it occurs.