Bulgarian PM says he is prepared to quit but wants government to stay