Vacuum local and global electromagnetic self-energies for a point-like and an extended field source