Determining energy flow propagation direction of transmitted wave at an active medium–vacuum interface