Critical Collapse in Einstein-Gauss-Bonnet Gravity in Five and Six Dimensions