Comparison and unification of non-Hermitian and Lindblad approaches with applications to open quantum optical systems