Three-dimensiional model for vectorial fields in vertical-cavity surface emitting lasers