Detect upgradeable proxies: EIP-1967 transparent/UUPS, beacon, EIP-1822, ZeppelinOS, EIP-1167 clones and Safe-style proxies, returning implementation, admin and beacon addresses. Use for audits and to fetch the real ABI.