Synthesis, antibacterial and antifungal activities of naphthoquinone derivatives: a structure–activity relationship study