Thermostatistics of deformed bosons and fermions