Determination of the night sky background around the Crab pulsar using its optical pulsation