Prompt high-energy neutrinos from gamma-ray bursts in photospheric and synchrotron self-Compton scenarios