Fabrication of RS flip-flops using Y-Ba-Cu-O ramp-edge junctions and their operation