Humidity sensor based on a cross-linked porous polymer with unexpectedly good properties