Casimir effect at nonzero temperature for wedges and cylinders