Understanding current limiting resistors