The B and V magnitudes of the central stars of planetary nebulae