Fast-rising blue optical transients and AT2018cow following electron-capture collapse of merged white dwarfs