Investigation into the flange problem of resist along the edge of substrate caused by spin coating