On superpotentials for D-branes in Gepner models