1640 in the Polish–Lithuanian Commonwealth