The formation of liquid bridge in different operating modes of AFM